package Visitor;

/**
 * @author duanzhizhou
 * @date 2024/11/12
 */
public class ConcreteVisitor extends Visitor{
    @Override
    protected void visitA(Element element) {
        System.out.println(getClass().getSimpleName() + "访问A" + element.getClass().getSimpleName());
    }
    
    @Override
    protected void visitB(Element element) {
        System.out.println(getClass().getSimpleName() + "访问B" + element.getClass().getSimpleName());
    }
}
